<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shops', function (Blueprint $table) {
            $table->id();
            $table->integer('customer_id')->default(0)->comment('客户id');
            $table->string('plateform_name')->default('')->comment('平台名字');
            $table->string('object_name')->default('')->comment('服务项目');
            $table->string('counsulting_volume')->default('')->comment('咨询量');
            $table->decimal('base_price',10,1)->default(0)->comment('基础价格');
            $table->tinyInteger('cooperation_status')->default(1)->comment('状态1正常2终止');
            $table->string('settlement_group')->default('')->comment('结算群');
            $table->timestamps();
        });
        \DB::statement("ALTER TABLE `shops` comment '店铺'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shops');
    }
};
